
#ifndef STATESHOPPOWERUPS_H
#define STATESHOPPOWERUPS_H

#include "StateShopCommon.h"
#include "Singleton.h"
#include "RenderableEntity.h"
#include "TextEntity.h"
#include "TimeLineEffect.h"
#include "AchievementData.h"
#include "Container.h"

class StateShopPowerUps : public StateShopCommon, public Singleton<StateShopPowerUps>
{
private:
    
    RenderableEntity* m_oIcon[POWERUPS_ITEMS_COUNT];
    RenderableEntity* m_oCountBG[POWERUPS_ITEMS_COUNT];
    TextEntity* m_oCount[POWERUPS_ITEMS_COUNT];
    RenderableEntity* m_oCoinIcon[POWERUPS_ITEMS_COUNT];
    TextEntity* m_oName[POWERUPS_ITEMS_COUNT];
    TextEntity* m_oPrice[POWERUPS_ITEMS_COUNT];
    
    TextEntity* m_oDescription;
    TextEntity* m_oSelect;
    
    int m_iSelected;
    RenderableEntity* m_oSelectedMark;
    
    RenderableEntity* m_oBuyIcon;
    TextEntity* m_oBuyText;
    
public:
    
	StateShopPowerUps(){}
	~StateShopPowerUps(){}
    
    void loadContent();
	void unloadContent();
    
	void activated();
	void enter();
    void update(float dt);
    void render();
    void exit();
    
    void setBackState();
    
    void buyClicked();
};

#endif
